// This file was decompiled using SASCM.ini published on 2021-01-30
{$CLEO .cs}

script_name 'NUKLEARBOMB' 
Model.Load(1636)
038B: load_requested_models 
jump @NUKLEARBOMB_33 

:NUKLEARBOMB_33
wait 0 
if 
   Model.Available(1636)
jump @NUKLEARBOMB_53 

:NUKLEARBOMB_53
wait 0 
if 
is_key_pressed 67 
jf @NUKLEARBOMB_53 
if 
   Actor.DrivingPlane($PLAYER_ACTOR)
jf @NUKLEARBOMB_53 
if or
   Actor.DrivingVehicleType($PLAYER_ACTOR, 289)
   Actor.DrivingVehicleType($PLAYER_ACTOR, #SHAMAL)
   Actor.DrivingVehicleType($PLAYER_ACTOR, #NEVADA)
   Actor.DrivingVehicleType($PLAYER_ACTOR, #ANDROM)
jf @NUKLEARBOMB_53 
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0407: store_coords_to 2@ 3@ 4@ from_car 0@ with_offset 0.0 0.0 -1.0 
Object.Create(15@, 1636, 2@, 3@, 4@)
Object.CollisionDetection(15@, False)
Object.ToggleInMovingList(15@, False)
wait 20 
Object.CollisionDetection(15@, True)
Object.ToggleInMovingList(15@, True)
Object.SetImmunities(15@, True, True, True, True, True)
wait 6000 
Object.StorePos(15@, 5@, 6@, 7@)
Object.Create(15@, 1636, 5@, 6@, 7@)
wait 1000 
Object.StorePos(15@, 12@, 13@, 14@)
064B: $NUKEBOMB = create_particle "EXPLOSION_NUKE" at 12@ 13@ 14@ type 1 
$MP3 = Audiostream.Load("CLEO\SOUND\BOOMS.MP3")
Audiostream.PerformAction($MP3, AudioStreamState.Play)
12@ = 0.0 
13@ = 0.0 
14@ = 0.0 
064C: make_particle $NUKEBOMB visible 
020C: create_explosion_with_radius 12 at 12@ 13@ 14@ 
020C: create_explosion_with_radius 12 at 12@ 13@ 14@ 
wait 1000 
Object.Destroy(15@)
Object.RemoveReferences(15@)
06C8: enable_riot 0 
06C8: enable_riot 1 
jump @NUKLEARBOMB_33 
